projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87a3fd1
)
(lock_file_owner_name): Always initialize the_pw.
author
Richard M. Stallman
<rms@gnu.org>
Mon, 29 Jul 1996 04:21:23 +0000
(
04:21
+0000)
committer
Richard M. Stallman
<rms@gnu.org>
Mon, 29 Jul 1996 04:21:23 +0000
(
04:21
+0000)
src/filelock.c
patch
|
blob
|
history
diff --git
a/src/filelock.c
b/src/filelock.c
index 27b4be4ad35eee3f212a60aa2477b2533d8c2b62..5393867063c96d4e84889806e3f9fec53d4dd0f8 100644
(file)
--- a/
src/filelock.c
+++ b/
src/filelock.c
@@
-166,6
+166,9
@@
lock_file_owner_name (lfname)
if (lstat (lfname, &s) == 0)
the_pw = getpwuid (s.st_uid);
+ else
+ the_pw = 0;
+
return (the_pw == 0 ? Qnil : build_string (the_pw->pw_name));
}